﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCompanyName.AbpZeroTemplate.Gantt
{
    public partial class Dependency : General
    {
        public Dependency() 
        {
            this.CreateOn = DateTime.Now;
        }
        public override int Id { get; set; }
        public int ProjectId { get; set; }
        public System.DateTime CreateOn { get; set; }
        public string CreateBy { get; set; }
        public int FromIdRaw { get; set; }
        public int ToIdRaw { get; set; }
        public Nullable<int> Type { get; set; }
        public string Cls { get; set; }
        public Nullable<int> Lag { get; set; }
        public string LagUnit { get; set; }

        [ForeignKey("FromIdRaw")]
        public virtual TaskInfo FromTask { get; set; }

        [ForeignKey("ToIdRaw")]
        public virtual TaskInfo ToTask { get; set; }
    }
}
